package com.cetcs.kmga.dataManager.util;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import java.io.IOException;
import java.net.InetAddress;
import java.util.StringTokenizer;

/**
 * 获取Mq参数的工具类
 *
 * @author xutao
 * @version V1.0 创建时间：2017-02-17 16:48
 *          Copyright 2017 by CETC
 */
public class MqParamsUtil {
    //获取登录日至系统的用户名密码 配置文件中
    private static String MQ_HOST = ReadConfigUtil.getValueByKey("conf\\MqService.properties","MQ_HOST");
    private static String MQ_USER = ReadConfigUtil.getValueByKey("conf\\MqService.properties","MQ_USER");
    private static String MQ_PWD = ReadConfigUtil.getValueByKey("conf\\MqService.properties","MQ_PWD");

    public static String getMqHost() {
        return MQ_HOST;
    }

    public static void setMqHost(String mqHost) {
        MQ_HOST = mqHost;
    }

    public static String getMqUser() {
        return MQ_USER;
    }

    public static void setMqUser(String mqUser) {
        MQ_USER = mqUser;
    }

    public static String getMqPwd() {
        return MQ_PWD;
    }

    public static void setMqPwd(String mqPwd) {
        MQ_PWD = mqPwd;
    }
}
